<?php
    $category = select($config,'kinds');
?>
<div class="sidebar">
    <div class="searchform">
        <form action="/home/doselect.php" method="get">
            <span>
            <input name="keywords" placeholder="keywords" type="text" />
            </span>
            <input type="submit" style="width:55px;height:20px" value="submit"/>
        </form>
    </div>
    <div class="clr"></div>
    <div class="gadget">
        <h2 class="star"><span>Category</span> Menu</h2>
        <div class="clr"></div>
        <ul class="sb_menu">
        <?php 
            foreach ($category as $k => $v) {
                echo "<li><a href='/home/index.php?id=".$v['id']."&p=1'>".$v['category']."</a></li>";
            }
        ?>
        </ul>
        <h2 class="star"><a href="/home/addarticle.php">Publish an article</a></h2>
    </div>
</div>
      <div class="clr"></div>
    </div>
  </div>
  <div class="fbg">
    <div class="fbg_resize">
        <div class="col c1">
            <h2><span>Image</span> Gallery</h2>
            <a href="#"><img src="/home/public/images/gal1.jpg" width="75" height="75" alt="" class="gal" /></a> <a href="#"><img src="/home/public/images/gal2.jpg" width="75" height="75" alt="" class="gal" /></a> <a href="#"><img src="/home/public/images/gal3.jpg" width="75" height="75" alt="" class="gal" /></a> <a href="#"><img src="/home/public/images/gal4.jpg" width="75" height="75" alt="" class="gal" /></a> <a href="#"><img src="/home/public/images/gal5.jpg" width="75" height="75" alt="" class="gal" /></a> <a href="#"><img src="/home/public/images/gal6.jpg" width="75" height="75" alt="" class="gal" /></a> 
        </div>
      <div class="col c2">
        <h2><span>Services</span> Overview</h2>
        <p>Curabitur sed urna id nunc pulvinar semper. Nunc sit amet tortor sit amet lacus sagittis posuere cursus vitae nunc.Etiam venenatis, turpis at eleifend porta, nisl nulla bibendum justo.</p>
        <ul class="fbg_ul">
          <li><a href="#">Lorem ipsum dolor labore et dolore.</a></li>
          <li><a href="#">Excepteur officia deserunt.</a></li>
          <li><a href="#">Integer tellus ipsum tempor sed.</a></li>
        </ul>
      </div>
      <div class="col c3">
        <h2><span>Contact</span> Us</h2>
        <p>Nullam quam lorem, tristique non vestibulum nec, consectetur in risus. Aliquam a quam vel leo gravida gravida eu porttitor dui.</p>
        <p class="contact_info"> <span>Address:</span> 1458 TemplateAccess, USA<br />
          <span>Telephone:</span> +123-1234-5678<br />
          <span>FAX:</span> +458-4578<br />
          <span>Others:</span> +301 - 0125 - 01258<br />
          <span>E-mail:</span> <a href="#">mail@yoursitename.com</a> </p>
      </div>
      <div class="clr"></div>
    </div>
  </div>
  <div class="footer">
    <div class="footer_resize">
      <p class="lf">Copyright &copy; <a href="#">Domain Name</a>. All Rights Reserved</p>
      <p class="rf">More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></p>
      <div style="clear:both;"></div>
    </div>
  </div>
</div>
</body>
</html>